/**
 * 此文件将由 Vite 自动加载并在“渲染器”上下文中运行
 * Electron, visit:
 * https://electronjs.org/docs/tutorial/application-architecture#main-and-renderer-processes
 *
 * 默认情况下，此文件中的Node.js集成被禁用。当在渲染进程中启用Node.js集成时，请注意潜在的安全隐患
 * https://electronjs.org/docs/tutorial/security
 *
 * 要在此文件中启用Node.js集成，请打开main.ts并启用nodeIntegration
 *
 * flag:
 *
 * ```
 *  // Create the browser window.
 *  mainWindow = new BrowserWindow({
 *    width: 800,
 *    height: 600,
 *    webPreferences: {
 *      nodeIntegration: true
 *    }
 *  });
 * ```
 */

import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import { createApp } from 'vue';
import App from './App.vue';
import './index.scss';
import router from './router';

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);
app.use(pinia);
app.use(router);

app.mount('#app');
